package day0108;

import java.util.Arrays;
import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        double result=disCount(1194.789);
        System.out.println(result);
    }

    static double disCount(double price){
        if(price>=500) {
            return price * 0.8;
        }else{
            return price;
        }
    }

}
